package com.home.service;/**
 * @author chenxf
 * @date 2022/4/15 15:09
 */

import com.home.entity.PolicyNewsInfo;
import com.home.entity.PolicySiteConfig;

import java.util.List;

/**
 * @author chenxf
 * @date 2022/4/15 15:09
 * @description: 政策抓取接口
 */
public interface PolicyNewsIface {
    /**
     * 采集 列表
     */
    List<PolicyNewsInfo> fetchPage(PolicySiteConfig config,String lastUrl) throws Exception;

    /**
     * 采集分页
     * @throws Exception
     */
    void fetchContent(String contentUrl,String cssSelector,PolicyNewsInfo newsInfo) throws Exception;
}
